Skip to content

Add optional support for digit separators and cpp prefixes#369

Open
zaewc wants to merge 11 commits intofastfloat:mainfrom
zaewc:main
Open

Add optional support for digit separators and cpp prefixes#369
zaewc wants to merge 11 commits intofastfloat:mainfrom
zaewc:main

Conversation

@zaewc
Copy link
Copy Markdown
Contributor

@zaewc zaewc commented Feb 8, 2026

Add optional support in from_chars_advanced to:

  • skip a configurable digit separator (e.g. ')
  • skip standard cpp prefixes (0x/0X, 0b/0B) before parsing (decimal-only; no hex/binary floats)

Resolves #124

no measurable regression on standard inputs (canada.txt / mesh.txt).

@lemire
Copy link
Copy Markdown
Member

lemire commented Feb 15, 2026

Thanks, to be reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature?: ignored characters `'_ / allowing prefixs 0x and 0b etc...

2 participants